package com.victor.entity.user;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户反馈信息表
 * @author qinyuquan
 *
 */
@Entity
@Table(name = "user_feedback")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserFeedback implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;

	@Column(name = "userid", length = 50)
	private String userid;//提交用户id

	@Column(name = "classid", length = 50)
	private String classid;//反馈类型id
	
	@Column(name = "message", length = 50)
	private String message;//反馈信息
	
	@Column(name = "status", length = 50)
	private String status;//状态 0已提交，1已回复
	
	@Column(name = "replyid", length = 50)
	private String replyid;//回复人id	

	@Column(name = "replymessage", length = 50)
	private String replymessage;//回复信息
	
	@Transient
	private List<UserFeedbackPhoto> userFeedbackPhotos;//反馈信息图片表
}
